package com.cdtye.itps.cms.service.site;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cdtye.common.mybatiscore.base.BaseService;
import com.cdtye.itps.cms.dao.line.vo.JcSeclineVo;
import com.cdtye.itps.cms.dao.site.entity.JcSite;
import com.cdtye.itps.cms.dao.site.vo.JcSiteVo;
import com.cdtye.itps.cms.mapper.site.JcSiteMapper;
import io.swagger.annotations.Api;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
@Api("区站 service")
public class JcSiteService extends BaseService<JcSiteMapper, JcSite> {
    /**
     * 获取区站字典的基础数据
     * @param siteId
     * @return
     */
    public Map<String,Object> getSiteById(String siteId){
        return baseMapper.getSiteById(siteId);
    }

    public IPage<Map<String,Object>> pageList4Brain(JcSiteVo vo){
        return baseMapper.pageList4Brain(vo.page(),vo);
    }
}
